home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Vault: The Gold Collection
/
Software Vault - The Gold Collection (American Databankers) (1993).ISO
/
cdr26
/
icndos15.zip
/
RUN.BAT
< prev
next >
Wrap
DOS Batch File
|
1993-06-03
|
3KB
|
110 lines
@echo off
if %1!==! goto uhoh
REM *** IconDOS - DEMO MENU ***
REM
REM This batch file illustrates how easy it is to set up a single batch file
REM to handle any number of IconDOS menu icons. Each icon in the demo
REM example menu (DEMO.MNU) has a command string which calls RUN.BAT and
REM passes a single, unique parameter. This parameter identifies the command
REM set that is to be executed. The 'goto %1' below simply transfers control
REM to a labeled location which matches the parameter. For example, the
REM icon for dBase IV has the command string: 'RUN DB4'. This command string
REM calls this batch file (RUN.BAT) with the passed parameter, 'DB4'. DOS
REM replaces %1 by the first parameter found on the command line (DB4)
REM which results in the following line reading 'goto DB4'.
goto %1
:123
REM To actually execute Lotus from this icon, replace the 'echo' line below
REM with the commands to change to your Lotus directory and execute 123.
REM These commands should look something like:
REM CD\LOTUS
REM 123
REM The same general method can be used to set up a command set for any of
REM the labels/parameters listed below.
echo DEMO MENU - You selected Lotus 1-2-3
goto done
:DB4
echo DEMO MENU - You selected dBase IV
goto done
:WS
echo DEMO MENU - You selected WordStar
goto done
:WP
echo DEMO MENU - You selected WordPerfect
goto done
:QUICKEN
echo DEMO MENU - You selected Quicken
goto done
:MOUSE
echo DEMO MENU - You selected the Logitech Mouse Driver
goto done
:COREL
echo DEMO MENU - You selected Corel Draw
goto done
:CALC
echo DEMO MENU - You selected the Calculator
goto done
:WINDO
echo DEMO MENU - You selected MicroSoft Windows
goto done
:PAINT
echo DEMO MENU - You selected Paint
goto done
:BJ
echo DEMO MENU - You selected Black Jack
goto done
:FLY
echo DEMO MENU - You selected Flight Simulator
goto done
REM *** Below are the options for the submenu, SUBDEMO.MNU ***
:NETWK
echo DEMO SUB-MENU - You selected Network
goto done
:NOTE
echo DEMO SUB-MENU - You selected NotePad
goto done
:CD
echo DEMO SUB-MENU - You selected CD-ROM
goto done
:uhoh
REM This message prints if no parameters were passed
echo This batch file requires IconDOS
goto stop
:done
REM This is the clean up area which contains the commands needed to return
REM control to IconDOS after running a command set. For an actual menu, the
REM 'echo' line below should be replaced with something like:
REM C:
REM CD\MENU
REM Alternately, control can be returned to IconDOS by specifying the full
REM drive and directory path location for IconDOS and menu files as follows:
REM C:\MENU\ICONDOS C:\MENU\DEMO
echo If this had been an actual menu, your software would be running now.
ICONDOS DEMO
:stop